
#ifndef _CLIENTDEMO_CONNECT_HANDLE_H
#define _CLIENTDEMO_CONNECT_HANDLE_H

#include <wormnet/wm_types.h>
#include "wormnet/wm_RaknetChannel.h"

class CConnectHandler
{
public:
    ~CConnectHandler();

    static CConnectHandler* Instance();

    void Open();

    static void ConnectionAccepted(const bool& bIsSuccess);
    static void ReceiveData(char* pData, unsigned int& dwSize);
    static void Disconnect();

private:
    CConnectHandler();

private:
    worm::wmChannel*            m_pChannel;
};

#endif